<template>
    <div>
        <template>
            <el-tabs v-model="activeName" @tab-click="handleClick">
                <el-tab-pane label="发布考试" name="first">
                    <my-publish />
                </el-tab-pane>
                <el-tab-pane label="课程考试" name="second">
                    <my-course />
                </el-tab-pane>
            </el-tabs>
        </template>
    </div>
</template>

<script>
import myPublish from "./components/publish.vue";
import myCourse from "./components/course.vue";
export default {
    name: 'testRecord',
    data() {
        return {
            activeName: 'first'
        }
    },
    components: {
        myPublish,
        myCourse
    },
    created() {
        
    },
    methods: {
        handleClick(tab, event) {
            console.log(tab, event);
        }
    }
}
</script>

<style scoped lang="scss">
/deep/ .el-tabs__item {
    font-size: 16px;
}
</style>
